tsNetSetStatusCallback
Type
command
Summary
Sends a message to the given callback when status updates are available for network transfers.
Syntax
tsNetSetStatusCallback <pCallback>
Description
The message will be sent with five parameters: the identifier for the transfer, the status of the transfer, the number of bytes that have been downloaded, the total number of bytes to be downloaded, the number of bytes that have been uploaded and the total number of bytes to be uploaded. The total bytes may be 0 if the external is unable to determine this figure.
The status of the transfer can be any of: cancelled, timeout, error, uploaded, downloaded, requested, contacted, uploading or loading.
Parameters
Name | Type | Description |
---|---|---|
pCallback | Specify a callback message to be sent to the current card for network transfers. Set this to empty to disable status callback messages. |
Examples
tsNetSetStatusCallback "progressUpdate"
tsNetSetStatusCallback ""
Related
library: tsNet
Compatibility and Support
Introduced
LiveCode 8.1
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile